Method and apparatus for synchronous data transfers in a memory device with selectable data or address paths

ABSTRACT

A synchronous dynamic random access memory (“SDRAM”) operates with matching read and write latencies. To prevent data collision at the memory array, the SDRAM includes interim address and interim data registers that temporarily store write addresses and input data until an available interval is located where no read data or read addresses occupy the memory array. During the available interval, data is transferred from the interim data register to a location in the memory array identified by the address in the interim array register. In one embodiment, the SDRAM also includes address and compare logic to prevent reading incorrect data from an address to which the proper data has not yet been written. In another embodiment, a system controller monitors commands and addresses and inserts no operation commands to prevent such collision of data and addresses.

TECHNICAL FIELD

[0001] The present invention relates to memory devices, and more particularly, synchronous dynamic access memory devices.

BACKGROUND OF THE INVENTION

[0002] Conventional dynamic random access memories (DRAMs) perform data transfer operations in sequence. That is, when a read or write command is received and an address is made available, the data transfer operation, either read or write, is performed in its entirety before another command is accepted. Consequently, subsequent commands are delayed by the entire duration of the original data transfer.

[0003] The overall time to perform the original data transfer may be significant, because data transfers typically involve several steps, and each step takes time. For example, for a read operation, control logic of the DRAM must decode the command and address, perform precharge and equilibration, connect a row of memory cells to respective digit lines, allow time for sense amplifiers to develop signals; and transfer data from the sense amplifiers to an output data bus. Subsequent commands must wait until these operations are completed before they are accepted by the DRAM. Consequently, reading from and writing to the DRAM must be sufficiently slow to allow the original data transfer to be completed before a subsequent command is provided.

[0004] To reduce the amount of delay imposed in sequential data transfer operations, DRAMs can be “pipelined.” In pipelining, each of the above-described steps is performed according to a specific timing sequence. For example, when the original data transfer operation progresses from a first step (e.g., command and address decode) to a second step (e.g., read data), a second data transfer progresses to its first step (command and address decode). Thus, the DRAM's control logic can begin decoding the second command and the DRAM's address decoder can begin decoding the second address while the data from the original data transfer operation is being read from or written to the memory array.

[0005] To control the flow of data through a pipelined DRAM, commands and data are transferred synchronously, and such DRAMs are referred to as synchronous DRAMs (“SDRAMs”). In SDRAMs, timing of operations is established relative to the leading edges of a clock signal CLK. At fixed times relative to the leading edges, commands are read by the control logic, addresses are decoded by an address decoder, signals are developed on input and output lines of the memory array, and data is made available for reading or writing at a data bus.

[0006] In synchronous read operations, an output of data on the data bus results from a read command and an address received at a preceding leading edge of the clock. The delay in number of clock cycles between the arrival of the read command at the control logic input and the availability of the corresponding data at the data bus is the “latency” of the SDRAM. If the output data is available by the second leading edge of the clock following the arrival of the read command, the device is described as a two-latency SDRAM. If the data is available at the third leading edge of the clock following the arrival of the read command, the device is a three-latency SDRAM.

[0007] In conventional SDRAMs, latency is only imposed for read operations. In write operations, write commands are supplied simultaneously with data at the data bus. The commands, addresses, and data are transferred to the memory array very quickly, typically within one clock cycle. Typical SDRAMs may thus be described as having no write latency.

[0008]FIG. 1 is a block diagram of a conventional synchronous dynamic random access memory 40 (“SDRAM”). The SDRAM 40 has as its central memory element a memory array 42 that is segmented into two banks 44, 46. The SDRAM 40 operates under control of a logic controller 48 that receives a system clock signal CLK, a clock-enable signal CKE, and several command signals that control reading from and writing to the SDRAM 40. Among the command signals are a chip-select signal {overscore (CS)}, a write-enable signal {overscore (WE)}, a column address strobe signal {overscore (CAS)}, and a row address strobe signal {overscore (RAS)}. The overbars for the command signals {overscore (CS)}, {overscore (WE)}, {overscore (CAS)} and {overscore (RAS)} indicate that these signals are low-true signals, i.e., the command signals {overscore (CS)}, {overscore (WE)}, {overscore (CAS)} and {overscore (RAS)} go to a low logic level when true.

[0009] In addition to the command signals, the SDRAM 40 also receives addresses from the address bus 52 and receives or outputs data on a data bus 60. The received addresses may be row or column addresses. In either case, addresses from the address bus 52 are clocked in the SDRAM 40 through an address register or address latch 62. If an address is a row address, the address is transmitted to the array 42 through a row address path 64. The row address path 64 includes a row address multiplexer 66 that receives the external row address from the address latch 62 and receives an internal row address from a refresh circuit 67. The row address multiplexer 66 provides the row addresses to either of two row address latches 70 depending upon the logic state of the bank address BA. The row address latches 70 latch the row addresses and provide the row addresses to respective row decoders 72. The row decoders 72 take the 11-bit address from the row address latch 70 and activate a selected one of 2,048 row address lines 73. The row address lines 73 are conventional lines for selecting row addresses of locations in the memory array 42. As noted above, the following discussion assumes that the row address has been selected and that the selected row is activated.

[0010] If the address received at the address latch 62 is a column address, it is transmitted to the I/O interface 54 and the memory array 42 through a column address path 76. The column address path includes a column address counter/latch 78 that receives or increments, and holds the column address from the address latch 62, a multiplexer 79 that receives a column address from either address latch 62 or from counter/latch 78, a pre-decoder 102 and a latch 82. Depending on whether a particular column access is the result of a new command, or if it is a subsequent access in a burst initiated by a previous command, the multiplexer 79 transmits the appropriate column address to the column decoder 84, via the column address pre-decoder 102 and latch 82. For new commands, the multiplexer 79 routes the external address (from the address latch 62) through to the pre-decoder 102 and latch 82. A copy is also captured by the column address counter/latch 78 for incrementing on subsequent accesses. If the device 40 has been programmed for a burst length of 2 or greater, and a new column command is not presented to interrupt a column command issued on the previous clock edge, then the counter/latch 78 will increment (or sequence) to the next column address in the burst, and the multiplexer 79 will route the incremented address to the pre-decoder 102 and latch 82.

[0011] The input data path 56 transmits data from the data bus 60 to the I/O interface 54. The output data path 58 transmits data from the I/O interface 54 to the data bus 60. Operation of the column address path 76, input data path 56, and output data path 58 for a selected sequence of read and write commands will be described below with respect to the timing diagram of FIG. 4. The logic controller 48 decodes the command signals according to a predetermined protocol to identify read, write, and other commands for execution by the SDRAM 40. FIGS. 2 and 3 show clock and command signals and their states for write commands and read commands, respectively. The read and write commands differ only in the state of the write-enable signal {overscore (WE)}. Except for the write-enable signal {overscore (WE)}, the following discussion applies equally to FIGS. 2 and 3.

[0012] As indicated by the arrow 50, the leading edge of each pulse of the clock signal CLK establishes the time at which the states of the signals are determined. The clocking of the logic controller 48 by the clock signal CLK is enabled by the clock-enable signal CKE, which is high for reading and writing. Also, reading and writing from the SDRAM 40 is enabled only when the SDRAM 40 is selected, as indicated by the chip-select signal {overscore (CS)}.

[0013] The next two command signals are the row and column address strobe signals {overscore (RAS)} and {overscore (CAS)}. When true (low), the row address strobe signal {overscore (RAS)} indicates addresses on an address bus 52 are valid row addresses. A true (low) column address strobe signal {overscore (CAS)} indicates that addresses on the address bus 52 are valid column addresses. During reading or writing, the column address strobe signal {overscore (CAS)} is low (true) indicating that the address bits from the address bus 52 represent the column address, as represented for address signals A0-A10. The row address strobe signal {overscore (RAS)} is high (not true) because the row address was determined at a different leading clock edge. As is conventional to SDRAM operation, the row address is received and stored and the selected row is activated prior to the column address strobe signal {overscore (CAS)} going true (low). The following discussion assumes that the selected row has already been activated.

[0014] The write-enable signal {overscore (WE)} becomes active at the same time that the column-address strobe signal {overscore (CAS)} becomes active. The write-enable signal {overscore (WE)} is also a low-true signal such that, if the write-enable signal {overscore (WE)} is low, the data transfer operation will be a write, as shown in FIG. 2. If the write-enable signal {overscore (WE)} is high, the data transfer operation will be a read, as shown in FIG. 3.

[0015] The logic controller 48 decodes the above-described command signals CKE, CLK, {overscore (CS)}, {overscore (WE)}, {overscore (CAS)}, and {overscore (RAS)} to determine whether a read or write command has been received. In response to the determined command, the logic controller 48 controls reading from or writing to the memory array 42 by controlling an I/O interface 54 and input and output data paths 56, 58. The I/O interface 54 is any conventional I/O interface known in the art, and includes typical I/O interface elements, such as sense amplifiers, mask logic, precharge and equilibration circuitry, and input and output gating.

[0016] The following discussion of FIG. 4 assumes that the row address has already been decoded and the appropriate row of the memory array 42 has been activated in response to the row address. As shown in FIG. 4, a first read command READ1 is applied to the logic controller 48 at a leading edge of a first clock pulse at time t0. At substantially the same time, a first read column address RCOL1 is applied to the address bus 52. Over the next two periods of the clock signal CLK, the first read column address RCOL1 travels along the column address path 76 through the address latch 62, the multiplexer 79, the column address predecoder 102 and latch 82 to the column decoder 84 where it is decoded. The decoded read column address RCOL1 reaches the I/O interface 54 by time t2, at the second leading edge following the time t0.

[0017] Upon the decoded column address RCOL1 reaching the array 42, the I/O interface 54 reads data DOUT1 stored in the memory location at the decoded column address RCOL1 and provides the data DOUT1 to the output data path 58. The data DOUT1 travel through the output data path 58 and reaches the data bus 60 at time t3, which is three leading edges of the clock signal CLK after the first read command READ1 was received at time t0. The SDRAM 40 is thus a three-latency device because the data DOUT1 are available at the data bus 60 three leading edges of the clock signal CLK after the read command READ1 arrives at time t0.

[0018] A subsequent read command READ2 and a second column address RCOL2 arrive at time t1, which is the leading edge of the clock signal CLK immediately after the first leading clock edge at time t0. The above-described reading operations occur in response to the second read command READ2 and the second column address RCOL2, with each step shifted to the right by one period of the clock signal CLK relative to the operations of the first read command RCOL1. The data DOUT2 from the second memory location indicated by the column address RCOL2 are applied to the data bus 60 at time t4.

[0019] At time t2, a third read command READ3 and third column address RCOL2 are applied to the logic controller 48 and address bus 52, respectively. Once again, the read operations are repeated, one clock period after those of the second read operation. Thus, the data DOUT3 for the third read command READ3 are applied to the output data bus 60 at time t5.

[0020] While read operations are performed according to the read latency of the SDRAM 40, there is typically no write latency in the DRAM 40. However, the read latency of the SDRAM 40 can delay the completion of write operations that follow a read operation. FIG. 4 shows an example of an attempt to write data at time t3 immediately following the third read command READ3 at time t2. The write command WRITE1, the column address WCOL1, and the input data DIN1 are all applied to the logic controller 48, the address bus 52, and the data bus 60, respectively, at time t3. The decoded column address WCOL1 and input data DIN1 arrive at the array 42 approximately one clock cycle later. In the example of FIG. 4, the address WCOL1 and data DIN1 take approximately one clock cycle to traverse the column address path 76 and the input data path 56, respectively. However, in some SDRAMs, the data DIN1 and the decoded column address WCOL1 may arrive at the array 42 more quickly or more slowly.

[0021] One problem with the above-described timing structure is that at time t3, the input data DIN1 from the first write command WRITE1 and the output data DOUT1 from the first read command READ1 would collide at the data bus 60.

[0022] A second data collision occurs when a second write command WRITE2 immediately follows the first write command WRITE1. More specifically, at time t4, input data DIN2 for the second write command WRITE2 reaches the data bus 60 at the same time that output data DOUT2 from the second read command READ2 reach the data bus 60. A third data collision occurs when a third write command WRITE3 immediately follows the second write command WRITE2. This occurs at time t5 when input data DIN3 from the third write command WRITE3 and output data DOUT3 reach the data bus 60 simultaneously.

[0023] To prevent such data collisions, most SDRAMs require that write commands be delayed with respect to the read commands so that write commands are not permitted for one or more clock cycles after read commands. Typically, this is achieved by inserting no operation commands NO-OP between read and write commands. While this approach can prevent such collisions, the no operation commands NO-OP lower the effective speed of such SDRAMs because they impose delays in accepting write commands at the SDRAM. Note that this problem does not occur for read commands following write commands since the write command can be processed during the read latency period.

[0024] Another approach to preventing such data collisions might be to impose write latencies that equal the read latencies. As used herein, a “write latency” refers to the number of clock cycles between a write command and arrival of data on the data bus 60. Such an approach inherently avoids collisions of data and addresses on a computer's data bus and address bus because data and addresses will follow read and write commands by equal numbers of clock cycles. Thus, as long as the commands are not issued simultaneously, data and addresses will not collide on the data and address busses. One example of such an approach is found in U.S. Pat. No. 5,511,024 to Ware et al.

[0025] Unfortunately, this approach does not necessarily overcome the problems of data collisions and address collisions at the memory array 42, as can be seen in FIG. 5. As shown at time t3, a first write command WRITE1 and a first write column address WCOL1 are applied to the SDRAM 40. At time t4 a second write command WRITE2 and second write column address WCOL2 are applied. Input data DIN2 corresponding to the second write command WRITE2 are present on the data bus (DQ) at time t7, assuming a write latency of three. One leading edge later, at time t8, the input data DIN2 and the decoded second column address WCOL2 reach the array 42, assuming the second write address WCOL1 is internally delayed (buffered) and applied to the array 42 at the appropriate time.

[0026] At time t6, a fourth read command READ4 and fourth read address RCOL4 are applied to the logic controller 48 and the address bus 52, respectively. The decoded column address RCOL4 reaches the array at time t8 and the data DOUT4 is read from the array at time t8. However, as can be seen in FIG. 5, the decoded column addresses WCOL2 and RCOL4 both reach the array 42 at time t8. Also, the input data DIN2 and output data DOUT4 are being written to and read from the array 42 at time t8. Thus, reading and writing with the same latency might still result in data and address collisions at the array 42. One approach to overcoming this limitation could be to limit reads and writes to separate DRAMs or to separate independent arrays of a multi-array device. This approach still precludes sequential reads and writes at matching latencies within a single memory array. Also, a multi-bank memory array approach would require multiple independent memory arrays and associated column amplifiers to interleave reads from one bank with writes to another bank.

SUMMARY OF THE INVENTION

[0027] A synchronous dynamic random access memory (“SDRAM”) is configured to perform both read and write operations with the same latency while avoiding data and address collisions internal to the device. In one embodiment of the invention, the SDRAM includes interim address registers in a column address path and interim data registers in an input data path. In response to a write command, corresponding write address and corresponding input data the SDRAM stores the write address in one of the interim address registers and stores the input data in one of the interim data registers.

[0028] A logic controller within the SDRAM monitors subsequent commands to determine an available write interval at a memory array in the SDRAM. When the logic controller identifies an upcoming available write interval, the logic controller initiates transfer of the stored address from the interim address register and stored input data from the interim data register to an I/O interface. There, the input data is written to the location corresponding to the address.

[0029] The address path includes N+1 registers where N is the latency of the device, so that more than one address can be stored in the interim address registers. Additionally, the input data path includes N interim data registers to store the corresponding input data.

[0030] In one embodiment of the invention, the SDRAM also includes a bypass path between the input data path and an output data path. Additionally, the column address path includes an address predecoder and a comparator that compare incoming read addresses with stored addresses in the interim address registers. If the comparator determines that an incoming read address matches a stored write address in one of the interim address registers, the comparator activates a multiplexer in the input data path to transfer data from the corresponding interim data register to the output path. The data from the interim data register is thus provided at an output data bus in place of data from the array. Thus, this embodiment prevents reading from addresses in which data has not yet been updated.

[0031] A computer system according to the invention includes a memory controller that controls the SDRAM. With the embodiment described above, the controller need not keep track of buffered addresses for the purpose of avoiding reads to that data. In another embodiment, the memory controller includes interim address and data registers and a comparator to prevent reading of data from address locations that have not yet been updated. In another embodiment, the memory controller identifies attempts to read from addresses that have not yet been updated and inserts no operation commands to allow the data to be written to the array before the read operation is performed.

BRIEF DESCRIPTION OF THE DRAWINGS

[0032]FIG. 1 is a block diagram of a conventional synchronous dynamic random access memory (“SDRAM”).

[0033]FIG. 2 is a signal timing diagram showing states of various commands signals forming a write command.

[0034]FIG. 3 is a signal timing diagram showing states of various command signals forming a read command.

[0035]FIG. 4 is a timing diagram of signals for read and write operations within a conventional synchronous dynamic random access memory showing data and address collisions at the memory array and at the data bus.

[0036]FIG. 5 is a signal timing diagram of four latency read and four latency write operations in a hypothetical SDRAM according to FIG. 1, showing data and address collisions at the memory array.

[0037]FIG. 6 is a block diagram of an SDRAM according to one embodiment of the invention, including interim address and interim data registers in a column address path and a data input path, respectively.

[0038]FIG. 7 is a signal timing diagram of signals for four latency read and four latency write operations in the SDRAM of FIGS. 6 and 9.

[0039]FIG. 8 is a block diagram of an SDRAM according to another embodiment of the invention, including interim address registers and interim data registers and an array bypass for reading data posted in the interim data registers.

[0040]FIG. 9 is a block diagram of a computer system including the SDRAM of FIGS. 6 or 9, including a memory controller, microprocessor, display device and input and output devices.

DETAILED DESCRIPTION OF THE INVENTION

[0041] As shown in FIG. 6, an SDRAM 100 according to one embodiment of the invention operates with equal read and write latencies while avoiding collision at the memory array 42. The SDRAM 100 includes many elements that are identical to or analogous to elements of FIG. 2, where identical or analogous elements are numbered the same. Unlike the SDRAM 40 of FIG. 4, the SDRAM 100 of FIG. 6 includes column interim address registers 104 and an auxiliary address multiplexer 106 in the column address path 76. Also unlike the SDRAM 40 of FIG. 4, the SDRAM 100 of FIG. 6 includes interim data registers 108 and an input data multiplexer 110 in the input data path 56. Further differences in the SDRAM 100 are found in the timing of operations established by the logic controller 48. These timing differences will become apparent as operation of the SDRAM 100 of FIG. 6 is described with reference to the signal timing diagram of FIG. 7.

[0042] The SDRAM 100 of FIG. 6 performs both read and write operations with latencies of three. However, unlike the embodiment of FIG. 5, the SDRAM 100 of FIG. 6 avoids data and address collisions by temporarily storing data and addresses in the interim address and data registers 104, 108.

[0043] As seen in FIG. 7, the SDRAM 100 operates according to the same clock signal CLK, read and write commands and input data described above with reference to FIGS. 1-3 and 5. The timing diagram of FIG. 7 shows signals and commands for a series of three read commands followed by three write commands, followed by three read commands. One skilled in the art will recognize that several other series of commands can be applied. However, the series of FIG. 7 shows how the SDRAM 100 of FIG. 6 avoids data and address collisions for any series of commands without requiring no operation commands.

[0044] As shown in the first diagram of FIG. 7, at time t0, a first read command READ1 and first read column address RCOL1 are applied to the logic controller 48 and address bus 52, respectively. The read column address RCOL1 passes through the address latch 62 by time t1 and then through the multiplexer 79. The read column address RCOL1 is then applied to the address predecoder 102. The address predecoder 102 decodes the first read column address RCOL1 and stores the predecoded address RCOL1 in a first of the interim address registers 104 by time t2. Before time t2, the first read column address RCOL1 becomes available at the output of the interim register 104 and is clocked through the auxiliary address multiplexer 106 and into the column decoder 84. The column decoder 84 decodes the read column address RCOL1 and provides a pulse to the selected column of the array 42 as indicated by the decoded column signal COL-DEC. The pulse of the decoded column signal COL-DEC arrives at the selected array column before time t2. In response to the decoded read column address RCOL1 (including the pulse of the decoded column signal COL-DEC) and the read command, the I/O interface 54 reads output data DOUT1 from the location indicated by the address RCOL1, as indicated by the signal line INTERNAL I/O DATA in FIG. 7. The output data DOUT1 arrive at a read data latch 105 at about time t2. The data DOUT1 then pass through the remainder of data output path 58 and reach the output data bus 60 by time t3, which is three clock edges following the first read command READ1.

[0045] A second read command READ2 and second read column address RCOL2 are applied to the SDRAM 100 at time t1, which is one clock cycle following the first read command READ1. The second read column address RCOL2 follows the same path as the first read column address RCOL1, except that the second read column address RCOL2 reaches each location in the column address path 76 one clock cycle later. The output data DOUT2 are thus available at the data bus 60 at time t4.

[0046] A third read command READ3 and a third column address RCOL3 are present at time t2, and the read process is repeated as described above. The corresponding output data DOUT3 reach the data bus 60 at time t5.

[0047] At time t3, a first write command WRITE1 and a first write column address WCOL1 are applied to the logic controller 48 and the address bus 52, respectively. The corresponding input data DIN1 arrive three clock edges later, at time t6, in order to match the read latency. The write column address WCOL1 passes along the column address path 76 through the column address counter/latch 78, multiplexer 79, and column address predecoder 102, as described above, and reaches the interim address buffers 104 at time t4. The write column address WCOL1 is loaded into the uppermost interim address register 104 as indicated at the signal line REG1.

[0048] Unlike the read column addresses RCOL1, RCOL2, RCOL3, the first write column address WCOL1 does not transfer quickly through the interim address register 104 to the auxiliary address multiplexer 106 and column address buffer 82 to the column decoder 84. Instead, the write column address WCOL1 remains in the uppermost interim address register 104 for a substantial period of time. In fact, the write column address WCOL1 remains in the uppermost interim address register 104 until the logic controller 48 determines that the corresponding input data DIN1 can be written to the array 42 without an address collision. Similarly, the input data DIN1 is stored in the uppermost interim data register 108 until it can be written to the array 42 without a data collision. The interval when input data can be written to the array 42 without an address or data collision will be referred to herein as an “available write interval.”

[0049] To determine when an available write interval occurs and thus avoid data and address collisions, the logic controller 48 “looks ahead” to determine the usage of the array 42 in view of the latency of the SDRAM 100 and the commands and data following the first write command WRITE1. The determination of an available write interval can be seen by considering the time when the input data DIN1 can be written to the array.

[0050] First, the input data DIN1 corresponding to the write command WRITE1 do not reach the data bus 60 until time t6, because the write operation is a three-latency operation. Thus, the input data DIN1 cannot be written to the memory array 42 until after time t6. Consequently, the first write column address WCOL1 will not be transferred from the interim address register 104 to the I/O interface 54 until at least time t6, which is the clock edge on which the input data DIN1 reach the data bus 60.

[0051] Even though the input data DIN1 are available at time t6, the logic controller 48 still does not initiate transfer of the write column address WCOL1 at time t6. This is because the third command following the write command WRITE1 is a read command READ4 at time t6. The read command READ4 at time t6 means that the decoded read address RCOL4 will reach the I/O interface 54 two clock cycles later at time t8, at which time the output data DOUT4 will occupy the I/O interface 54 and array 42. To ensure that the decoded read command READ4 will arrive at the I/O interface 54 at time t8, the read column address RCOL4 exits the lowermost interim address register 104 between times t7 and t8. Thus, if the logic controller 48 were to transfer the write column address WCOL1 at time t7, both the write column address WCOL1 and the read column address RCOL4 would collide at the I/O interface 54 at time t8. Similarly, the input data DIN1 take at least one clock cycle to pass from the data bus 60 through the input data path 56 to the I/O interface 54. Thus, the input data DIN1 and the output data DOUT4 could also collide at the I/O interface 54.

[0052] The logic controller 48 also does not initiate transfer of the write column address WCOL1 at time t8 because a fifth read command READ5 arrives at time t7. The fifth read column address RCOL5 from the fifth read command READ5 applied at time t7 would thus occupy the I/O interface 54 and array 42 at or slightly before time t9. Consequently, the fifth read column address RCOL5 and the first write column address WCOL1 could collide at time t9 if the logic controller 48 initiated transfer of the input data DIN1 from the interim address register 104 at time t8. Also, the input data DIN1 and the output data DOUT5 could collide at time t9 under these conditions.

[0053] Likewise, the logic controller 48 does not initiate transfer of the write column address WCOL1 from the interim address register 104 at time t9, because of the address collision that could occur at time t10 between the first write column address WCOL1 and the sixth read column address RCOL6 from the sixth read command READ6 and because of the data collision that would occur between the input data DIN1 and the output data DOUT6.

[0054] As can be seen from the above discussion, the write column address WCOL1 remains in the interim address register 104 as long as read commands continue to be applied. However, once a write command (or any other command that will produce an opening at the I/O interface 56, such as a no operation NO-OP command) arrives, the logic controller 48 can predict that the memory array 42 will soon be available for writing (in two clock cycles).

[0055] At time t9, the fourth write command WRITE4 is applied to the logic controller 48. The fourth write command WRITE4 will not occupy the I/O interface 54 at time t11 because writes are three latency and the associated data DIN4 is not available yet. Consequently, the logic controller 48 determines that time t11 is an available write interval. Accordingly, at time t10, the logic controller 48 initiates transfer of the write column address WCOL1 from the uppermost interim address register 104 through the multiplexer 106 and column decoder 84 to the I/O interface 54. The write column address WCOL1 thus arrives alone at the I/O interface 54 at time t11.

[0056] The SDRAM 100 prevents data collisions at the I/O interface 54 in a similar fashion by holding the input data DIN1 in the uppermost interim data register 108 until time t10, which is one clock cycle before the available write interval of time t11. At time t10, the logic controller 48 initiates transfer of the input data DIN1 through the input data multiplexer 110 to the I/O interface 54, such that the input data DIN1 arrive at the I/O interface 54 at time t11. The I/O interface 54 writes to the array 42 at time t11, because both the first write column address WCOL1 and the corresponding input data DIN1 are present.

[0057] As can be seen from FIG. 7, a second write command WRITE2 and a second write column address WCOL2 reach the SDRAM 100 at time t4. The corresponding input data DIN2 arrive three leading edges later at time t7. As with the first write column address WCOL1, the second write column address WCOL2 passes through the column address path 76 to the interim address registers 104. When the second write column address WCOL2 arrives at the interim address registers 104, the uppermost interim address register 104 is already occupied by the first write column address WCOL1. Therefore, the second write column address WCOL2, is placed in the second interim address register 104 until a second available interval arrives at time t12.

[0058] In a similar fashion, the second input data DIN2 reach the data address bus 60 at time t7 and enter the second interim data register 108, because the first interim data register 108 is already occupied with the first input data DIN1. At time t11, the second input data DIN2 are transferred from the second interim data register 108, and reach the I/O interface 54 at the second available write interval at time t12. Thus, both the second write column address WCOL2 and the second input data DIN2 are available at the I/O interface 54 at time t12 and the second input data DIN2 are written to the array 42.

[0059] The above-described procedure is once again repeated for a third write command WRITE3 and third write column address WCOL3 that arrive at time t5 and their corresponding input data DIN3 that arrive at time t8. The third write column address WCOL3 occupies the third interim address register 104 and the third input data DIN3 occupy the third interim data register 108 until time t12 when they transfer to the I/O interface 54.

[0060] A fourth read command READ4 and fourth read column address RCOL4 reach the SDRAM 100 at time t6. As described above, the read column address RCOL4 passes through the column address path 76 to the interim address registers 104. The read column address RCOL4 passes directly through the fourth interim address register 104, and continues through the multiplexer 106 and the column decoder 84 directly to the I/O interface 54. The fourth read column address RCOL4 can pass undelayed because the first, second, and third write column address commands WCOL1, WCOL2, and WCOL3 are held in the first three interim address registers 104 until the read column address RCOL4 has left the I/O interface 54. The output data DOUT4 can pass through the I/O interface 54 to the output data path 58 at time t8 because the input data DIN1, DIN2, and DIN3 are held at the interim data registers 108 until after the output data DOUT4 pass through the output data path 58.

[0061] At time t7, a fifth read command READ5 reaches the SDRAM 100, and the above-described procedure is repeated such that the output data DOUT5 is available at time t10.

[0062] As described above, the SDRAM 100 can perform both reads and writes with three latency by temporarily storing the write column addresses and input data in the interim address and data registers 104, 108, thereby preventing data and/or address collisions at the I/O interface 54. One skilled in the art will recognize that the SDRAM 100 can perform subsequent reads and writes using N+1 interim address registers 104 where N is the latency of the SDRAM 100, regardless of the number of read commands that follow a write command and regardless of the number of write commands performed in sequence. Additionally, the SDRAM 100 can perform such sequential read and write operations using (N) interim data registers 108.

[0063]FIG. 8 shows another embodiment of the SDRAM 100 that addresses the situation where a read command is directed toward an address that is currently being held in one of the interim address register 104. This situation may occur if, for example, the fourth read column address RCOL4 is the same address as the first write column address WCOL1. In this situation, the output data DOUT4 for the fourth read command READ4 should be the input data DIN1 from the first write command WRITE1. However, the array 42 would not yet contain the proper input data (input data DIN1), because the input data DIN1 has not yet been written to the array 42 from the first interim data register 108. Consequently, the SDRAM 100 could provide the incorrect data at the output data bus 60 in response to the fourth read command READ4.

[0064] The SDRAM 120 of FIG. 8 treats such situations internally by adding an address comparator 122 coupled to the interim address registers 104 and the predecoder 121. Additionally, the SDRAM 120 includes an output data multiplexer 124 in the output data path 58 that receives output data from the I/O interface 54 and that can receive input data from the interim data registers 108 through the input data multiplexer 110 via a bypass path 126.

[0065] Operation of the SDRAM 120 of FIG. 8, under normal conditions, is substantially the same as operation of the SDRAM 100 of FIG. 6. However, in the SDRAM 120, as each new address is output by the predecoder 121, the address comparator 122 compares the addresses in each of the interim column address registers 104 to the newly applied address. If the address comparator 122 detects that the arriving address is a read column address RCOL* that matches a write column address WCOL* in one of the interim address registers 104, the address comparator 122 produces control signals on control lines 128, 131, to control the input data multiplexer 110 and output data multiplexer 124. In response to the control signals, the multiplexers 110 provide the input data DIN* corresponding to the matching write column address WCOL* from the corresponding interim data register 108 to the bypass path 126. The output data multiplexer 124 supplies the re-routed input data DIN* from the bypass path 126 to an output data register 129, in place of the output data DOUT* from the I/O interface 54. The input data DIN* thus arrive at the data bus 60, rather than data read from the location in the array 42 corresponding to the matching read address RCOL*. Thus, the improper data from the array 42 are blocked from reaching the output data bus 60 and the proper data DIN* and reach the data bus 60 through the bypass path 126. Even though the input data DIN* follow the bypass path 126 to the data bus 60, the input data DIN* are still provided to the memory array 42 at the appropriate available write interval so that the incorrect data in the memory array 42 is replaced by the correct data DIN*.

[0066] The problem of such an incorrect data read may not be critical in all situations, because some applications may operate adequately with occasional data errors. One example of a possible noncritical error is in a two-dimensional video display application where a video image includes many thousands of pixels. If a very few of the data bits are incorrect, the effect on the overall image would be negligible. In fact, the number of bit errors will be low because the above-described read-following-write operations to common addresses are rare. Thus, the embodiment of FIG. 6 may be preferred in some applications because of its simplicity and speed. In other applications, where data integrity is important, such as accounting programs, the embodiment of FIG. 8 would be preferred. Alternatively, as discussed below, the embodiment of FIG. 6 may be used in applications requiring data integrity, by programming the logic controller 48 to block reading of data from not-yet-written addresses.

[0067] Also, in some applications, such as certain packetized systems or data networks, it may be desirable to select data from the memory array 42 rather than from the interim data registers 108 when the stored address matches an address in the interim address register 104. For example, such a capability may allow retrieval of a lost data packet in a packetized system. The logic controller 48 can implement such capability in the SDRAM 100 by selectively enabling or disabling the comparator 122 responsive to external commands or to a preprogrammed algorithm. Although the preferred embodiment of the invention avoids data collisions by temporarily storing the write data and write addresses while a read operation is processed, alternative techniques may be used. For example, a data collision resulting from a write followed by a read may be avoided by temporarily storing the read address in a temporary address buffer until the write data has been stored in the array. The read address is then transferred from temporary address buffer to the array for the read operation.

[0068]FIG. 9 is a block diagram of a computer system 130 that includes the SDRAM 100 and a memory controller 136. The computer system 130 includes computer circuitry 132 for performing such computer functions as executing software to perform desired calculations and tasks. The computer circuitry 132 typically contains a processor 134, the memory controller 136 and the SDRAM 100 as shown. One or more input devices 144, such as a keyboard or a pointing device, are coupled to the computer circuitry 132 and allow an operator (not shown) to manually input data thereto. One or more output devices 146 are coupled to the computer circuitry 132 to provide data generated by the circuitry to the operator. Examples of output devices 146 include a printer and a video display unit. One or more data storage devices 148 are coupled to the computer circuitry 132 to store data in or retrieve data from external storage media (not shown). Examples of storage devices 148 and associated storage media include drives that accept hard and floppy disks, magnetic tape recorders, and compact-disc read only memory (CD-ROM) readers.

[0069] The memory controller 136 provides an alternative structure for avoiding the above-described read-following-write to a common location for use with the SDRAM 100. To avoid such situations, the alternative memory controller 136 includes interim address and data registers 138, 140 and a comparator circuit 142 that temporarily store data and addresses and compare incoming read addresses to write addresses in the interim address registers 138 in the fashion described above with respect to FIG. 8.

[0070] If the comparator 142 does not indicate a match (i.e., an attempt to read data from an address that is not yet written), addresses and data are forwarded, in the order received, to the SDRAM 100 through multiplexers 139, 141. If the comparator 142 indicates a match (i.e., an attempt to read from a location that is not yet written), the comparator 142 activates multiplexers 141, 143 to direct data from the interim data registers 140 along a bypass path 145 to the output device 146 or the processor 134. As described above, the correct data are output immediately and are written later to the SDRAM 100 at an available write interval. Alternatively, the memory controller 132 may insert no operation NO-OP steps to delay the read command until after the write operation is completed.

[0071] While the present invention has been explained by way of exemplary embodiments, various modifications may be made without departing from the spirit and scope of the invention. For example, the computer system 130 of FIG. 9 can use the SDRAM 120 of FIG. 8 and thereby eliminate the interim address, data registers 138, 140, multiplexers 139, 141, 143, and comparator circuit 142. Also, the SDRAMs 100, 120 have been described as three-latency devices. However, the structures and methods described herein can be applied to SDRAMs having any latency. Also, the structures and methods described herein can also be applied to a variety of other synchronous devices, such as packet or protocol-type synchronous memory devices. Moreover, although the description of the exemplary embodiments herein describes application to a single memory array 42, one skilled in the art will recognize that the principles described herein are equally applicable to avoiding collisions, at subarrays or banks, and that references to the memory array 42 could also refer to memory subarrays or banks. Many other devices could be developed that operate the same way and would be within the scope of the invention. Accordingly, the invention is not limited except as by the appended claims. 

1. An integrated memory device having a read or write latency of N where N is a real number greater than 1, comprising: a memory array; a command input terminal; a data bus; address input terminals; an output data path coupled to the memory array; a control circuit coupled to the command input terminal and responsive to a predetermined sequence of command signals at the command input terminal to produce a control signal indicative of either an anticipated data collision or an available read or write interval at the memory array; and an address path between the address input terminals and the memory array, the address path including an at least one interim address register, each of the interim address registers being configured to store a respective input address, each of the interim address registers being operative to retain the stored address in response to the control signal indicative of the anticipated data collision or to apply the address to the array in response to the control signal indicative of the available read or write interval at the memory array.
 2. The memory device of claim 1, further comprising: an input data path including at least N−1 interim data registers coupled between the data bus and the memory array, each of the interim data registers being configured to store a respective set of write data, each of the interim data registers being operative to retain the stored data in response to the control signal indicative of the anticipated data collision or to transfer the stored data to the memory array in response to the control signal indicative of the available read or write interval.
 3. The memory device of claim 1, further comprising: a comparing circuit coupled to receive incoming addresses before the incoming addresses are applied to the array, the comparing circuit further being coupled to the interim address register, the comparing circuit being operative to produce a compare signal in response to an incoming address matching a stored previously received address from the interim address register.
 4. An integrated memory device having a read latency of N where N is a real number greater than 1, comprising: a memory array; a command input terminal; a data bus; an output data path coupled to the memory array; a control circuit coupled to the command input terminal and responsive to a predetermined sequence of command signals at the command input terminal to produce a control signal indicative of an anticipated data collision or an available write interval at the memory array; and an input data path including at least N−1 interim data registers coupled between the data bus and the memory array, each of the interim data registers being configured to store a respective set of write data, each of the interim data registers being operative to retain the stored data in response to the control signal indicative of the anticipated data collision or to transfer the stored data to the memory array in response to the control signal indicative of the available write interval.
 5. The memory device of claim 4, further comprising: address input terminals; an address path between the address input terminals and the memory array, the address path including an interim address register; and a comparing circuit coupled to receive incoming addresses before the incoming addresses are applied to the array, the comparing circuit further being coupled to the interim address register, the comparing circuit being operative to produce a compare signal in response to an incoming address matching a stored previously received address from the interim address register.
 6. The memory device of claim 5, further comprising a bypass path from the interim data registers to the output data path, the bypass path being responsive to provide data from the interim data register to the output data path in response to the compare signal.
 7. The memory device of claim 4 wherein the output data path includes serially coupled first and second output data registers coupled to receive data from the memory array.
 8. The memory device of claim 4 wherein the address path further includes an address multiplexer coupled between the interim address register and the memory array.
 9. An integrated synchronous memory device having a read latency and write latency of N, where N is a positive real number, the memory device being operative to accept a read command within a latency period following a write command, comprising: a memory array; an address input terminal; an address path between the address input terminal and the memory array, the address path including an interim address register operable to store an address corresponding to the write command; an input data path, including an interim data register coupled to the memory array, the interim data register being operable to store a set of write data corresponding to the write command; and a look-ahead circuit configured to detect an upcoming available write interval at the memory array following the read command, the look-ahead circuit being configured to activate the interim data register and the interim address register in response to the detected upcoming available write interval, to provide the stored write address from the interim address register and the stored set of write data from the interim data register to the memory array.
 10. The memory device of claim 9, further comprising a comparing circuit coupled to receive incoming read addresses, the comparing circuit further being coupled to the interim address register, the comparing circuit being operative to produce a control signal in response to an incoming read address matching the stored write address in the interim address register.
 11. The memory device of claim 10, further comprising a bypass path from the interim data register to the output data path, the bypass path being responsive to provide data from the interim data register to the output data path in response to the control signal.
 12. The memory device of claim 11, further including a multiplexer coupled between the interim data register and the output data path, the multiplexer further being coupled to receive the control signal from the comparing circuit.
 13. The memory device of claim 9, further including at least N−2 additional interim address register locations such that the number of interim address registers is at least N−1.
 14. A computer system, comprising: a display; an input device; a timing control circuit; and a synchronous memory device having a latency of N, where N is greater than 1, the memory device including: a memory array; a command input terminal; a data bus; an input data path; at least N−1 interim data registers in the input data path, each of the interim data registers coupled to the data bus and operable to store a respective set of write data from the data bus, the interim data buffers being coupled to the memory array and operable to transfer the write data to the memory array; an output data path coupled to the memory array; and a logic controller coupled to the command input terminal and operative to predict a collision of the memory array in response to a command sequence at the command input terminal, the logic controller being configured to block the interim registers from transferring the write data to the memory array in response to the predicted collision.
 15. The computer system of claim 14, further comprising: an address input; and an interim address register coupled between the address input and the memory array, the interim address register being operable to store a write address and transfer the stored write address to the memory array, wherein the logic controller is operative to block the transfer of the stored write address to the memory array in response to the predicted collision.
 16. The computer system of claim 15, further comprising a comparing circuit coupled to the address input and the interim address register, the comparing circuit being operative to produce a control signal in response to an incoming read address from the address input matching an address in the interim address register.
 17. The computer system of claim 16 wherein the comparing circuit is within the synchronous memory device.
 18. The computer system of claim 16, further comprising a bypass path from the interim data registers to the output data path, the bypass path being responsive to provide data from the interim data register to the output data path in response to the control signal.
 19. The computer system of claim 16, further including a memory controller external to the synchronous memory device, wherein the comparing circuit is in the memory controller.
 20. The computer system of claim 16, further comprising an address multiplexer coupled between the interim address register and the memory array.
 21. The computer system of claim 15 wherein the number of interim address registers is at least N−1.
 22. An integrated synchronous memory device having a read latency and a write latency wherein the read latency and write latency are equal, comprising: a memory array; an address bus configured to receive read and write addresses; an address path coupled between the address bus and the memory array including an address comparator, the address comparator being operative to provide a control signal in response to a received read address matching a write address received at the address bus and still in the address path; a data bus; an input data path coupled between the data bus and the memory array; an output data path coupled between the data bus and the memory array; and a bypass circuit coupled between the input data path and the output data path, and responsive to the control signal from the address comparator to provide a bypass path between the input and output data paths.
 23. The memory device of claim 22, further comprising: a plurality of interim address registers in the input address path; and a plurality of interim data registers in the input data path.
 24. The memory device of claim 23, further comprising an address multiplexer coupled to outputs of the interim address registers.
 25. The memory device of claim 23, further comprising an input data multiplexer coupled to outputs of the interim data registers.
 26. The memory device of claim 25 wherein the bypass circuit includes an output data multiplexer having an input coupled to the input data multiplexer.
 27. A method of synchronously reading data from and writing data to a selected memory array within an integrated memory device, comprising the steps of: providing a first read command during a first interval; waiting a selected latency period after the first interval; transferring data from the selected memory array to an output data bus by the end of the latency period in response to the first read command; providing a write command at a second interval immediately following the first interval and before the end of the latency period; and writing data to the selected memory array.
 28. The method of claim 27 wherein the step of writing to the selected memory array comprises the steps of: storing write addresses in an interim address register; storing write data in an interim data register; detecting an available write interval at the memory array; retrieving the stored write addresses and stored write data from the interim address and data registers in response to the detected available write interval; and writing the retrieved data to a location in the memory array identified by the retrieved write address.
 29. The method of claim 28 wherein the step of transferring data from the selected memory array to an output data bus further comprises the steps of: comparing a read address to addresses in the interim address register; if the read address matches one of the addresses in the interim address register, transferring data from the interim data register to the output data path; and if the read address does not match one of the addresses in the interim address register, transferring data from the selected memory array to the output data path.
 30. The method of claim 27, further comprising the steps of: providing a second read command at a third interval immediately following the second interval and before the end of the latency period; and reading data from the selected memory array in response to the second read command.
 31. A method of synchronously reading and writing data in a memory device having a memory array according to a clock signal defining a series of operational intervals, comprising the steps of: providing a read command during a first operational interval; providing a write command at a second operational interval immediately following the first operational interval; in response to the read command, completing a read operation at an Nth operational interval following the first operational interval by N−1 operational intervals, where the N is greater than or equal to 2; and in response to the write command, completing a write operation after performing the read operation.
 32. The method of claim 31 wherein the step of completing a write operation includes the steps of: accepting a write address; temporarily storing the write address; accepting input data; temporarily storing the input data; detecting an available interval of the memory array; and writing the input data to the memory array at the detected available interval.
 33. The method of claim 32 wherein the step of completing a read operation includes the steps of: comparing a read address of the read operation to a set of write addresses; if the read address matches any write address in the set of write addresses, reading data from an input data path before receiving the read address; and if the read address does not match any write address in the set of write addresses, reading data from a location in the memory array designated by the read address.
 34. A method of writing data to an integrated memory array, following reading data from the integrated memory array, comprising: receiving a first write address in connection with a first write operation; after receiving the write address, receiving a read address in connection with a memory read operation; receiving a first set of write data in connection with the write operation; applying the read address to the memory array in connection with the read operation; storing the first write address in an address register until after the read address is applied to the memory array; storing the first set of write data in a data register until after the read address is applied to the memory array; and after completion of the read operation, processing the first write address to store the first set of write data in the memory array.
 35. The method of claim 34 wherein the read operation occupies N clock cycles and wherein the steps of receiving the write address and receiving the write data are separated by N clock cycles.
 36. The method of claim 34, further comprising the steps of: before receiving the read address, receiving a second write address in connection with a second write operation; before receiving the read address, receiving a second set of write data in connection with the second write operation; and after applying the read address to the memory array, processing the second write address to store the second set of write data in the memory array.
 37. A method of writing to an integrated memory array, comprising the steps of: temporarily storing a write address in an interim address register; temporarily storing write data in an interim data register; monitoring commands to detect an available nonreading interval at the memory array; and during the detected available nonreading interval, transferring the temporarily stored write data from the interim data register to a location in the memory array identified by the temporarily stored write address.
 38. The method of claim 37, further comprising the steps of: receiving the write address of the memory device at a first operational interval; and receiving the write data of the memory device at a second operational interval later than the first operational interval. 